#ifndef __Socket_H__
#define __Socket_H__
#include "Noncopyable.h"

namespace wd
{

//套接字是系统资源，也不能进行复制
class Socket 
: Noncopyable
{
public:
    Socket();
    explicit Socket(int fd)
    : _fd(fd)
    {}

    ~Socket();

    int fd() const {return _fd; }
    void shutdownWrite();

private:
    int _fd;
};

}//end of namespace wd


#endif

